<div class="col-xs-10 col-xs-offset-1 form-horizontal" >
	
	<div class="form-group">
		<label class="col-xs-2 control-label">机器码</label>
		<div class="col-xs-6">
			<input type="text" class="form-control" placeholder="请输入机器码"
			ng-model="obj.code" ng-disabled="isable=='1'"
			>
		</div>
	</div>

	<div class="form-group">
		<label class="col-xs-2 control-label">设备名称</label>
		<div class="col-xs-6">
			<input type="text" class="form-control" placeholder="设备名称"
			ng-model="obj.name" ng-disabled="isable=='1'"
			>
		</div>
	</div>

	<div class="form-group">
		<label class="col-xs-2 control-label">设备绑定类型</label>
		<div class="col-xs-6">
			<!-- <select class="form-control" ng-model="obj.binding_type" 
              ng-options="typelist.type as typelist.type for typelist in typearr"
              ng-change="changeDeviceType(obj.binding_type)" ng-disabled="isable=='1'"
            >
            </select> -->
            <select class="form-control" ng-model="obj.binding_type" 
              ng-change="changeDeviceType(obj.binding_type)" ng-disabled="isable=='1'"
            >
            	<option value="1">旅行社</option>
            	<option value="2">景区</option>
            </select>
		</div>
	</div>

	<div class="form-group">
    <label class="col-xs-2 control-label">设备所属机构</label>
    <div class="col-xs-6">
        <ui-select ng-model="obj.binding_company_code" theme="bootstrap" ng-disabled="isable=='1'" ng-change="changeGroup(search.isSelected.code)">
        <ui-select-match placeholder="请选择所属机构">{{$select.selected.name}}{{$select.selected.code}}</ui-select-match>
        <ui-select-choices repeat="type.code as type in companyarr | filter: $select.search">
          <span ng-bind-html="type.name | highlight: $select.search"></span>
          <small ng-bind-html="type.code | highlight: $select.search"></small>
        </ui-select-choices>
        </ui-select>
    </div>  
	</div>

	
	<!-- <div ng-show="isshow=='1'">
		<div class="form-group">
			<label class="col-xs-2 control-label">绑定团名</label>
			<div class="col-xs-6">
				<select class="form-control" ng-model="obj.binding_code" 
            ng-options="group.group_id as group.group_name for group in grouparr"
          >
        </select>
			</div>
		</div>
  </div> -->
		<!-- <div class="form-group">
			<label class="col-xs-2 control-label">绑定时间</label>
			<div class="col-xs-6">
            <div class="input-group" datetimepicker ng-model="vm.date" options="vm.options">
                <input class="form-control" />
                <span class="input-group-addon">
                    <span class="glyphicon glyphicon-calendar"></span>
                </span>
            </div>
      </div>
    </div> -->

	  <div class="form-group">
			<label class="col-xs-2 control-label">最大报名人数</label>
			<div class="col-xs-6">
				<input type="number" class="form-control" 
				ng-model="obj.binding_maxsignup"
				>
			</div>
		</div>

    <div class="form-group">
      <label class="col-xs-2 control-label">备注</label>
      <div class="col-xs-6">
        <input type="text" class="form-control" 
        ng-model="obj.remarks"
        >
      </div>
    </div>
  
  <div class="form-group">
      <label class="col-xs-2 control-label">活动补贴id</label>
      <div class="col-xs-6">
        <input type="text" class="form-control" 
        ng-model="obj.subsidy_id"
        >
      </div>
  </div>

	<button 
    type="button" 
    class="btn btn-primary btn-lg btn-block" 
    ng-click="gogo()"
    >
    提交吧！黄同学jj
    </button>


</div>